
import ajax from '@/utils/request'
import { concatUrl } from '@/utils'

// 商品列表
export function getGoods(data, fields: string | object = { fields: 'goods,after' }) {
    return ajax({
        url: concatUrl('/v1/service/service/goods-list', fields),
        data
    })
}

// 平台化商品列表
export function getPlatformGoods(data, fields: string | object = { fields: 'goods,after' }) {
	return ajax({
			url: concatUrl('/v1/service/service/platform-goods-list', fields),
			data
	})
}

// 商品列表-属性配置
export function getProperty(data, fields: string | object = { fields: 'goodsProperty,isNeedMatchCar,matchProperty,sort' }) {
    return ajax({
        url: concatUrl('/v1/service/service/property', fields),
        data
    })
}
